sgdk
Sprite Struct Reference

#include <sprite_eng.h>

List of all members.

Public Attributes

SpriteDefinitiondefinition
Animationanimation
AnimationFrameframe
s16 x
s16 y
s16 animInd
s16 frameInd
s16 seqInd
u16 timer
u16 attribut
s16 fixedIndex
u32 data
s32 visibility

Detailed Description

Sprite structure.
Used to manage an active sprite in game condition.

Parameters:
spriteDefSprite definition pointer
animationAnimation pointer cache
frameAnimationFrame pointer cache
xcurrent sprite X position
ycurrent sprite Y position
animIndcurrent animation index
frameIndcurrent frame animation index
seqIndcurrent frame animation sequence index
timertimer for current frame
attributsprite extra attribut (see TILE_ATTR() macro)
fixedIndexfixed VRAM tile index for this sprite, by default it is set to -1 for dynamic allocation
datamisc data to handle sprite (free use for user)
visibilityvisibility flag for each VDP sprite of current frame

The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Defines